<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="UTF-8" lang="UTF-8">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="UTF-8" />
      <title></title>
      <style type="text/css">
      body {margin:0;text-align:center;color:#000;font:normal 12px Arial,Verdana,Tahoma;text-align:center;background:#fff;line-height:150%;}
      a:link,a:visited {color:#385065;text-decoration:none}
      a:hover {text-decoration:underline}
      #menu {width:165px;margin:0px auto;padding:0px;text-align:left;list-style:none; float:left;}
      #menu .item {margin:0px;padding:0px;list-style:none}
      a.title:link,a.title:visited,   a.title:hover {display:block;background:url(__PUBLIC__/Skins/Default/tree_bg.gif);color:#798086; font-size:14px;font-weight:bold;padding:2px 0 0 22px;width:143px;line-height:23px;cursor:pointer;text-decoration:none; text-align:left;}
      #menu .item ul {border-bottom:1px solid #D4D2D2;margin:0;width:133px;padding:3px 0px 3px 30px;background:#fff;list-style:none;display:none}
      #menu .item ul li {display:block;}
      </style>
      <script language="javascript" type="text/javascript">
      // --- 获取ClassName
      document.getElementsByClassName = function(cl) {
          var retnode = [];
          var myclass = new RegExp('\\b'+cl+'\\b');
          var elem = this.getElementsByTagName('*');
          for (var j = 0; j < elem.length; j++) {
              var classes = elem[j].className;
              if (myclass.test(classes)) retnode.push(elem[j]);
          }
          return retnode;
      }
    
      // --- 隐藏所有
      function HideAll() {
          var items = document.getElementsByClassName("optiton");
          for (var j=0; j<items.length; j++) {
              items[j].style.display = "none";
          }
      }
    
      // --- 设置cookie
      function setCookie(sName,sValue,expireHours) {
          var cookieString = sName + "=" + escape(sValue);
          //;判断是否设置过期时间
          if (expireHours>0) {
               var date = new Date();
               date.setTime(date.getTime + expireHours * 3600 * 1000);
               cookieString = cookieString + "; expire=" + date.toGMTString();
          }
          document.cookie = cookieString;
      }
    
      //--- 获取cookie
      function getCookie(sName) {
        var aCookie = document.cookie.split("; ");
        for (var j=0; j < aCookie.length; j++){
          var aCrumb = aCookie[j].split("=");
          if (escape(sName) == aCrumb[0])
            return unescape(aCrumb[1]);
        }
        return null;
      }
    
      window.onload = function() {
          var show_item = "opt_1";
          if (getCookie("show_item") != null) {
               show_item= "opt_" + getCookie("show_item");
          }
          document.getElementById(show_item).style.display = "block";
          var items = document.getElementsByClassName("title");
          for (var j=0; j<items.length; j++) {
              items[j].onclick = function() {
                  var o = document.getElementById("opt_" + this.name);
                  if (o.style.display != "block") {
                      HideAll();
                      o.style.display = "block";
                      setCookie("show_item",this.name);
                  }
                  else {
                      o.style.display = "none";
                  }
              }
          }
      }
      </script>
</head>

<body>
<ul id="menu">
      <li class="item"><a href="javascript:void(0)" class="title" name="1">新闻管理</a>
        <ul id="opt_1" class="optiton">
            <li><a href="__APP__/AdminNews/xwfb" target="main">新闻添加</a></li>
            <li><a href="__APP__/AdminNews/xwgl" target="main">新闻管理</a></li>
        </ul>
      </li>
      <li class="item"><a href="javascript:void(0)" class="title" name="2">广告管理</a>
        <ul id="opt_2" class="optiton">
            <li><a href="tjgg.html" target="main">广告发布</a></li>
            <li><a href="gggl.html" target="main">广告列表</a></li>
            <li><a href="jdtu.html" target="main">焦点图管理</a></li>
        </ul>
      </li>
      <li class="item"><a href="javascript:void(0)" class="title" name="3">新闻管理</a>
        <ul id="opt_3" class="optiton">
            <li><a href="xwfb.html" target="main">新闻发布</a></li>
            <li><a href="xwgl.html" target="main">新闻列表</a></li>
        </ul>
      </li>
	   <li class="item"><a href="javascript:void(0)" class="title" name="4">会员管理</a>
        <ul id="opt_4" class="optiton">
            <li><a href="__APP__/AdminMember/member_list?p=1" target="main">会员列表</a></li>
            <li><a href="__APP__/AdminMember/add_member" target="main">增加会员</a></li>
            <li><a href="__APP__/AdminMember/batch_member" target="main">批量增加</a></li>
            <li><a href="__APP__/AdminMember/member_type_list" target="main">会员类型</a></li>
            <li><a href="__APP__/AdminMember/member_property_list" target="main">会员属性</a></li>
        </ul>
      </li>
       <li class="item"><a href="javascript:void(0)" class="title" name="5">系统管理</a>
        <ul id="opt_5" class="optiton">
            <li><a href="main.html" target="main">更改密码</a></li>
            <li><a href="main.html" target="main">权限管理</a></li>
            <li><a href="main.html" target="main">用户管理</a></li>
        </ul>
      </li>
</ul>
</body>
</html>

